{% load i18n %}
{% load materializecss %}

<div class="modal-content">
  <h5>
    {% trans "Cancel order?" context "Modal cancel order title" %}
  </h5>
  <p>
    {% blocktrans trimmed with order=order context "Modal cancel order text" %}
      Are you sure, you want cancel order {{ order }}?
    {% endblocktrans %}
  </p>
</div>

<div class="modal-footer">
  <form id="release-form" method="post" role="form" class="form-async"
  action="{% url 'dashboard:order-cancel' order_pk=order.pk %}" novalidate>
    {% csrf_token %}
    <button type="submit" class="modal-action btn-flat">
      {% trans "Cancel Order" context "Modal cancel order primary action" %}
    </button>
    <a href="#!" aria-hidden="true" class="modal-action modal-close btn-flat">
      {% trans "Abort" context "Dashboard abort action" %}
    </a>
  </form>
</div>
